#include "stdafx.h"
#include "Instrument.h"

char* Instrument:: GetTime()
{
	 time_t lt;
	 lt=time(NULL);
     return ctime(&lt);
}

void Instrument::Receive(Container * c)
{
	barrel.push_back(c);
}

vector<Container*> Instrument::Send()
{
	vector<Container*> t;
	while (barrel.size() !=0)
	{
		t.push_back(barrel.back());
		barrel.pop_back();
	}
	return t;

}


int Car::GetId() const
{
	int id;
	id = rand()%31;
	return id;
}

